﻿namespace HuaWei
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using HuaWei.CommClass;
    using HuaWei.DAI;
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class Form1 : Form
    {
        private BindingSource bindingSource;
        private Button button1;
        private Button button2;
        private GridColumn colBDID;
        private GridColumn colBGHDJ;
        private GridColumn colBGHJE;
        private GridColumn colBGHSL;
        private GridColumn colBZ;
        private GridColumn colDJZD;
        private GridColumn colDW;
        private GridColumn colHTJE;
        private GridColumn colHVS;
        private GridColumn colID;
        private GridColumn colJLID;
        private GridColumn colPID;
        private GridColumn colQDBH;
        private GridColumn colQDID;
        private GridColumn colQDLX;
        private GridColumn colQDMC;
        private GridColumn colXMID;
        private GridColumn colXXDJ;
        private GridColumn colYZID;
        private GridColumn colZBCD;
        private GridColumn colZBDJ;
        private GridColumn colZXZDJ;
        private System.Windows.Forms.ComboBox comboBox1;
        private DataNavigator dataNavigator1;
        private DataSet dataSet = new DataSet();
        private GridControl gridControl1;
        private GridView gridView1;
        private IContainer icontainer = null;
        private LabelControl labelControl1;
        private LabelControl labelControl2;
        private LabelControl labelControl3;
        private LabelControl labelControl4;
        private LabelControl labelControl7;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlItem layoutControlItem1;
        private LayoutControlItem layoutControlItem2;
        private LayoutControlItem layoutControlItem3;
        private LayoutControlItem layoutControlItem4;
        private LayoutControlItem layoutControlItem5;
        private Panel panel1;
        private SimpleButton simpleButton1;
        private SimpleButton simpleButton2;
        private SimpleButton simpleButton3;
        private SimpleButton simpleButton4;
        private TextEdit textEdit5;
        private TextEdit textEdit6;
        private TextEdit textEdit7;
        private TextEdit textEdit8;
        private TextEdit textEdit9;
        private PanelControl vroAaJyIa;
        private GridColumn XDSLSFKWM;

        public Form1()
        {
            this.InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DBHelp.IniIDA();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.icontainer = new Container();
            this.panel1 = new Panel();
            this.gridControl1 = new GridControl();
            this.bindingSource = new BindingSource(this.icontainer);
            this.gridView1 = new GridView();
            this.colID = new GridColumn();
            this.colPID = new GridColumn();
            this.colXMID = new GridColumn();
            this.colYZID = new GridColumn();
            this.colJLID = new GridColumn();
            this.colBDID = new GridColumn();
            this.colHVS = new GridColumn();
            this.colQDID = new GridColumn();
            this.colQDBH = new GridColumn();
            this.colQDMC = new GridColumn();
            this.colQDLX = new GridColumn();
            this.colZBCD = new GridColumn();
            this.colDW = new GridColumn();
            this.colZXZDJ = new GridColumn();
            this.colZBDJ = new GridColumn();
            this.colXXDJ = new GridColumn();
            this.colBGHDJ = new GridColumn();
            this.XDSLSFKWM = new GridColumn();
            this.colBGHSL = new GridColumn();
            this.colHTJE = new GridColumn();
            this.colBGHJE = new GridColumn();
            this.colDJZD = new GridColumn();
            this.colBZ = new GridColumn();
            this.simpleButton3 = new SimpleButton();
            this.vroAaJyIa = new PanelControl();
            this.labelControl4 = new LabelControl();
            this.labelControl3 = new LabelControl();
            this.labelControl2 = new LabelControl();
            this.labelControl1 = new LabelControl();
            this.labelControl7 = new LabelControl();
            this.layoutControl1 = new LayoutControl();
            this.textEdit9 = new TextEdit();
            this.textEdit5 = new TextEdit();
            this.textEdit7 = new TextEdit();
            this.textEdit6 = new TextEdit();
            this.textEdit8 = new TextEdit();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.layoutControlItem5 = new LayoutControlItem();
            this.layoutControlItem1 = new LayoutControlItem();
            this.layoutControlItem2 = new LayoutControlItem();
            this.layoutControlItem3 = new LayoutControlItem();
            this.layoutControlItem4 = new LayoutControlItem();
            this.simpleButton2 = new SimpleButton();
            this.simpleButton1 = new SimpleButton();
            this.dataNavigator1 = new DataNavigator();
            this.comboBox1 = new System.Windows.Forms.ComboBox();
            this.button2 = new Button();
            this.button1 = new Button();
            this.simpleButton4 = new SimpleButton();
            this.panel1.SuspendLayout();
            this.gridControl1.BeginInit();
            ((ISupportInitialize) this.bindingSource).BeginInit();
            this.gridView1.BeginInit();
            this.vroAaJyIa.BeginInit();
            this.vroAaJyIa.SuspendLayout();
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.textEdit9.Properties.BeginInit();
            this.textEdit5.Properties.BeginInit();
            this.textEdit7.Properties.BeginInit();
            this.textEdit6.Properties.BeginInit();
            this.textEdit8.Properties.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.layoutControlItem5.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.layoutControlItem2.BeginInit();
            this.layoutControlItem3.BeginInit();
            this.layoutControlItem4.BeginInit();
            base.SuspendLayout();
            this.panel1.Controls.Add(this.gridControl1);
            this.panel1.Controls.Add(this.simpleButton3);
            this.panel1.Controls.Add(this.vroAaJyIa);
            this.panel1.Controls.Add(this.layoutControl1);
            this.panel1.Controls.Add(this.simpleButton2);
            this.panel1.Controls.Add(this.simpleButton1);
            this.panel1.Controls.Add(this.dataNavigator1);
            this.panel1.Controls.Add(this.comboBox1);
            this.panel1.Controls.Add(this.button2);
            this.panel1.Controls.Add(this.button1);
            this.panel1.Dock = DockStyle.Fill;
            this.panel1.Location = new Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x295, 0x1f6);
            this.panel1.TabIndex = 0;
            this.gridControl1.DataSource = this.bindingSource;
            this.gridControl1.Dock = DockStyle.Bottom;
            this.gridControl1.Location = new Point(0, 210);
            this.gridControl1.MainView = this.gridView1;
            this.gridControl1.Name = "gridControl1";
            this.gridControl1.Size = new Size(0x295, 0x124);
            this.gridControl1.TabIndex = 10;
            this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { this.gridView1 });
            this.bindingSource.DataMember = "JLQD";
            this.gridView1.Columns.AddRange(new GridColumn[] { 
                this.colID, this.colPID, this.colXMID, this.colYZID, this.colJLID, this.colBDID, this.colHVS, this.colQDID, this.colQDBH, this.colQDMC, this.colQDLX, this.colZBCD, this.colDW, this.colZXZDJ, this.colZBDJ, this.colXXDJ, 
                this.colBGHDJ, this.XDSLSFKWM, this.colBGHSL, this.colHTJE, this.colBGHJE, this.colDJZD, this.colBZ
             });
            this.gridView1.GridControl = this.gridControl1;
            this.gridView1.Name = "gridView1";
            this.colID.FieldName = "ID";
            this.colID.Name = "colID";
            this.colID.Visible = true;
            this.colID.VisibleIndex = 0;
            this.colPID.FieldName = "PID";
            this.colPID.Name = "colPID";
            this.colPID.Visible = true;
            this.colPID.VisibleIndex = 1;
            this.colXMID.FieldName = "XMID";
            this.colXMID.Name = "colXMID";
            this.colXMID.Visible = true;
            this.colXMID.VisibleIndex = 2;
            this.colYZID.FieldName = "YZID";
            this.colYZID.Name = "colYZID";
            this.colYZID.Visible = true;
            this.colYZID.VisibleIndex = 3;
            this.colJLID.FieldName = "JLID";
            this.colJLID.Name = "colJLID";
            this.colJLID.Visible = true;
            this.colJLID.VisibleIndex = 4;
            this.colBDID.FieldName = "BDID";
            this.colBDID.Name = "colBDID";
            this.colBDID.Visible = true;
            this.colBDID.VisibleIndex = 5;
            this.colHVS.FieldName = "HVS";
            this.colHVS.Name = "colHVS";
            this.colHVS.OptionsColumn.ReadOnly = true;
            this.colHVS.Visible = true;
            this.colHVS.VisibleIndex = 6;
            this.colQDID.FieldName = "QDID";
            this.colQDID.Name = "colQDID";
            this.colQDID.Visible = true;
            this.colQDID.VisibleIndex = 7;
            this.colQDBH.FieldName = "QDBH";
            this.colQDBH.Name = "colQDBH";
            this.colQDBH.Visible = true;
            this.colQDBH.VisibleIndex = 8;
            this.colQDMC.FieldName = "QDMC";
            this.colQDMC.Name = "colQDMC";
            this.colQDMC.Visible = true;
            this.colQDMC.VisibleIndex = 9;
            this.colQDLX.FieldName = "QDLX";
            this.colQDLX.Name = "colQDLX";
            this.colQDLX.Visible = true;
            this.colQDLX.VisibleIndex = 10;
            this.colZBCD.FieldName = "ZBCD";
            this.colZBCD.Name = "colZBCD";
            this.colZBCD.Visible = true;
            this.colZBCD.VisibleIndex = 11;
            this.colDW.FieldName = "DW";
            this.colDW.Name = "colDW";
            this.colDW.Visible = true;
            this.colDW.VisibleIndex = 12;
            this.colZXZDJ.FieldName = "ZXZDJ";
            this.colZXZDJ.Name = "colZXZDJ";
            this.colZXZDJ.Visible = true;
            this.colZXZDJ.VisibleIndex = 13;
            this.colZBDJ.FieldName = "ZBDJ";
            this.colZBDJ.Name = "colZBDJ";
            this.colZBDJ.Visible = true;
            this.colZBDJ.VisibleIndex = 14;
            this.colXXDJ.FieldName = "XXDJ";
            this.colXXDJ.Name = "colXXDJ";
            this.colXXDJ.Visible = true;
            this.colXXDJ.VisibleIndex = 15;
            this.colBGHDJ.FieldName = "BGHDJ";
            this.colBGHDJ.Name = "colBGHDJ";
            this.colBGHDJ.Visible = true;
            this.colBGHDJ.VisibleIndex = 0x10;
            this.XDSLSFKWM.FieldName = "HTSL";
            this.XDSLSFKWM.Name = "colHTSL";
            this.XDSLSFKWM.Visible = true;
            this.XDSLSFKWM.VisibleIndex = 0x11;
            this.colBGHSL.FieldName = "BGHSL";
            this.colBGHSL.Name = "colBGHSL";
            this.colBGHSL.Visible = true;
            this.colBGHSL.VisibleIndex = 0x12;
            this.colHTJE.FieldName = "HTJE";
            this.colHTJE.Name = "colHTJE";
            this.colHTJE.Visible = true;
            this.colHTJE.VisibleIndex = 0x13;
            this.colBGHJE.FieldName = "BGHJE";
            this.colBGHJE.Name = "colBGHJE";
            this.colBGHJE.Visible = true;
            this.colBGHJE.VisibleIndex = 20;
            this.colDJZD.FieldName = "DJZD";
            this.colDJZD.Name = "colDJZD";
            this.colDJZD.Visible = true;
            this.colDJZD.VisibleIndex = 0x15;
            this.colBZ.FieldName = "BZ";
            this.colBZ.Name = "colBZ";
            this.colBZ.Visible = true;
            this.colBZ.VisibleIndex = 0x16;
            this.simpleButton3.Location = new Point(0x23e, 0x86);
            this.simpleButton3.Name = "simpleButton3";
            this.simpleButton3.Size = new Size(0x4b, 0x17);
            this.simpleButton3.TabIndex = 9;
            this.simpleButton3.Text = "Save";
            this.simpleButton3.Click += new EventHandler(this.simpleButton3_Click);
            this.vroAaJyIa.Controls.Add(this.simpleButton4);
            this.vroAaJyIa.Controls.Add(this.labelControl4);
            this.vroAaJyIa.Controls.Add(this.labelControl3);
            this.vroAaJyIa.Controls.Add(this.labelControl2);
            this.vroAaJyIa.Controls.Add(this.labelControl1);
            this.vroAaJyIa.Controls.Add(this.labelControl7);
            this.vroAaJyIa.Dock = DockStyle.Top;
            this.vroAaJyIa.Location = new Point(0, 0);
            this.vroAaJyIa.Name = "panelControl4";
            this.vroAaJyIa.Size = new Size(0x295, 0x58);
            this.vroAaJyIa.TabIndex = 7;
            this.labelControl4.Location = new Point(0xc1, 0x26);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new Size(0x18, 14);
            this.labelControl4.TabIndex = 4;
            this.labelControl4.Text = "部位";
            this.labelControl3.Location = new Point(6, 0x26);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(0x30, 14);
            this.labelControl3.TabIndex = 3;
            this.labelControl3.Text = "图纸编号";
            this.labelControl2.Location = new Point(0xc1, 9);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(0x30, 14);
            this.labelControl2.TabIndex = 2;
            this.labelControl2.Text = "起讫桩号";
            this.labelControl1.Location = new Point(6, 9);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x30, 14);
            this.labelControl1.TabIndex = 1;
            this.labelControl1.Text = "凭证编号";
            this.labelControl7.Location = new Point(0, 0x39);
            this.labelControl7.Name = "labelControl7";
            this.labelControl7.Size = new Size(0x60, 14);
            this.labelControl7.TabIndex = 7;
            this.labelControl7.Text = "中间交工证书编号";
            this.layoutControl1.Controls.Add(this.textEdit9);
            this.layoutControl1.Controls.Add(this.textEdit5);
            this.layoutControl1.Controls.Add(this.textEdit7);
            this.layoutControl1.Controls.Add(this.textEdit6);
            this.layoutControl1.Controls.Add(this.textEdit8);
            this.layoutControl1.Location = new Point(6, 0x5e);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x237, 0x5f);
            this.layoutControl1.TabIndex = 6;
            this.layoutControl1.Text = "layoutControl1";
            this.textEdit9.Location = new Point(0x70, 12);
            this.textEdit9.Name = "textEdit9";
            this.textEdit9.Size = new Size(170, 0x15);
            this.textEdit9.StyleController = this.layoutControl1;
            this.textEdit9.TabIndex = 0;
            this.textEdit5.Location = new Point(0x182, 0x25);
            this.textEdit5.Name = "textEdit5";
            this.textEdit5.Size = new Size(0xa9, 0x15);
            this.textEdit5.StyleController = this.layoutControl1;
            this.textEdit5.TabIndex = 10;
            this.textEdit7.Location = new Point(0x182, 12);
            this.textEdit7.Name = "textEdit7";
            this.textEdit7.Size = new Size(0xa9, 0x15);
            this.textEdit7.StyleController = this.layoutControl1;
            this.textEdit7.TabIndex = 8;
            this.textEdit6.Location = new Point(0x70, 0x25);
            this.textEdit6.Name = "textEdit6";
            this.textEdit6.Size = new Size(170, 0x15);
            this.textEdit6.StyleController = this.layoutControl1;
            this.textEdit6.TabIndex = 9;
            this.textEdit8.Location = new Point(0x70, 0x3e);
            this.textEdit8.Name = "textEdit8";
            this.textEdit8.Size = new Size(0x1bb, 0x15);
            this.textEdit8.StyleController = this.layoutControl1;
            this.textEdit8.TabIndex = 13;
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem5, this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem3, this.layoutControlItem4 });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Size = new Size(0x237, 0x5f);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            this.layoutControlItem5.Control = this.textEdit8;
            this.layoutControlItem5.CustomizationFormText = "中间交工证书编号";
            this.layoutControlItem5.Location = new Point(0, 50);
            this.layoutControlItem5.Name = "layoutControlItem5";
            this.layoutControlItem5.Size = new Size(0x223, 0x19);
            this.layoutControlItem5.Text = "中间交工证书编号";
            this.layoutControlItem5.TextSize = new Size(0x60, 14);
            this.layoutControlItem1.Control = this.textEdit9;
            this.layoutControlItem1.CustomizationFormText = "凭证编号";
            this.layoutControlItem1.Location = new Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x112, 0x19);
            this.layoutControlItem1.Text = "凭证编号";
            this.layoutControlItem1.TextSize = new Size(0x60, 14);
            this.layoutControlItem2.Control = this.textEdit7;
            this.layoutControlItem2.CustomizationFormText = "起讫桩号";
            this.layoutControlItem2.Location = new Point(0x112, 0);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new Size(0x111, 0x19);
            this.layoutControlItem2.Text = "起讫桩号";
            this.layoutControlItem2.TextSize = new Size(0x60, 14);
            this.layoutControlItem3.Control = this.textEdit6;
            this.layoutControlItem3.CustomizationFormText = "图纸编号";
            this.layoutControlItem3.Location = new Point(0, 0x19);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.Size = new Size(0x112, 0x19);
            this.layoutControlItem3.Text = "图纸编号";
            this.layoutControlItem3.TextSize = new Size(0x60, 14);
            this.layoutControlItem4.Control = this.textEdit5;
            this.layoutControlItem4.CustomizationFormText = "部位";
            this.layoutControlItem4.Location = new Point(0x112, 0x19);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new Size(0x111, 0x19);
            this.layoutControlItem4.Text = "部位";
            this.layoutControlItem4.TextSize = new Size(0x60, 14);
            this.simpleButton2.Location = new Point(0x23e, 0x68);
            this.simpleButton2.Name = "simpleButton2";
            this.simpleButton2.Size = new Size(0x4b, 0x17);
            this.simpleButton2.TabIndex = 8;
            this.simpleButton2.Text = "Get";
            this.simpleButton2.Click += new EventHandler(this.simpleButton2_Click);
            this.simpleButton1.Location = new Point(0xd3, 11);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(0x4b, 0x17);
            this.simpleButton1.TabIndex = 5;
            this.simpleButton1.Text = "simpleButton1";
            this.simpleButton1.Click += new EventHandler(this.lquywmUul);
            this.dataNavigator1.Location = new Point(0x9b, 0x2f);
            this.dataNavigator1.Name = "dataNavigator1";
            this.dataNavigator1.Size = new Size(0xac, 0x18);
            this.dataNavigator1.TabIndex = 4;
            this.dataNavigator1.Text = "dataNavigator1";
            this.comboBox1.FormattingEnabled = true;
            this.comboBox1.Location = new Point(0x1c, 0x33);
            this.comboBox1.Name = "comboBox1";
            this.comboBox1.Size = new Size(0x79, 20);
            this.comboBox1.TabIndex = 2;
            this.button2.Location = new Point(0x77, 11);
            this.button2.Name = "button2";
            this.button2.Size = new Size(0x4b, 0x17);
            this.button2.TabIndex = 1;
            this.button2.Text = "save";
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Click += new EventHandler(this.button2_Click);
            this.button1.Location = new Point(0x1c, 12);
            this.button1.Name = "button1";
            this.button1.Size = new Size(0x4b, 0x17);
            this.button1.TabIndex = 0;
            this.button1.Text = "GetData";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new EventHandler(this.button1_Click);
            this.simpleButton4.Location = new Point(0x169, 0x20);
            this.simpleButton4.Name = "simpleButton4";
            this.simpleButton4.Size = new Size(0x4b, 0x17);
            this.simpleButton4.TabIndex = 8;
            this.simpleButton4.Text = "simpleButton4";
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x295, 0x1f6);
            base.Controls.Add(this.panel1);
            base.Name = "Form1";
            this.Text = "Form1";
            this.panel1.ResumeLayout(false);
            this.gridControl1.EndInit();
            ((ISupportInitialize) this.bindingSource).EndInit();
            this.gridView1.EndInit();
            this.vroAaJyIa.EndInit();
            this.vroAaJyIa.ResumeLayout(false);
            this.vroAaJyIa.PerformLayout();
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.textEdit9.Properties.EndInit();
            this.textEdit5.Properties.EndInit();
            this.textEdit7.Properties.EndInit();
            this.textEdit6.Properties.EndInit();
            this.textEdit8.Properties.EndInit();
            this.layoutControlGroup1.EndInit();
            this.layoutControlItem5.EndInit();
            this.layoutControlItem1.EndInit();
            this.layoutControlItem2.EndInit();
            this.layoutControlItem3.EndInit();
            this.layoutControlItem4.EndInit();
            base.ResumeLayout(false);
        }

        private void lquywmUul(object sender, EventArgs e)
        {
        }

        private void method(IDataAccess idataAccess, DataSet dataSet1)
        {
            int num;
            string tableName;
            DataSet set = new DataSet();
            for (num = dataSet1.Tables.Count - 1; num >= 0; num--)
            {
                tableName = dataSet1.Tables[num].TableName;
                string exeStr = string.Format("select * from {0} where 1>2", tableName);
                set.Merge(idataAccess.ExecuteDataSet(exeStr, CommandType.Text, tableName));
            }
            for (num = dataSet1.Tables.Count - 1; num >= 0; num--)
            {
                tableName = dataSet1.Tables[num].TableName;
                for (int i = dataSet1.Tables[num].Columns.Count - 1; i >= 0; i--)
                {
                    string columnName = dataSet1.Tables[num].Columns[i].ColumnName;
                    if (!set.Tables[tableName].Columns.Contains(columnName))
                    {
                        dataSet1.Tables[num].Columns.Remove(columnName);
                    }
                }
            }
            for (num = dataSet1.Tables.Count - 1; num >= 0; num--)
            {
                tableName = dataSet1.Tables[num].TableName;
                idataAccess.Update(dataSet1.Tables[tableName]);
            }
        }

        private void method1(object sender, NavigatorButtonClickEventArgs e)
        {
            if (("add".Equals(e.Button.Tag) || "addChild".Equals(e.Button.Tag)) || !"del".Equals(e.Button.Tag))
            {
            }
        }

        public void Save(DataSet ds, Hashtable paramList)
        {
            IDataAccess access = DBHelp.IniIDA();
            access.OpenDatabase();
            access.BeginTrans();
            try
            {
                access.Update(this.dataSet, true);
                access.Commit();
            }
            catch (Exception exception)
            {
                access.RollBack();
                Exception exception2 = new Exception("组件设计布局保存异常！", exception);
                throw exception2;
            }
            finally
            {
                access.CloseDatabase();
            }
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            if (this.dataSet == null)
            {
                this.dataSet = new DataSet();
            }
            IDataAccess access = DBHelp.IniIDA();
            this.dataSet.Merge(access.ExecuteDataSet("select * from jlqd order by hvs desc", CommandType.Text, "jlqd"));
            this.bindingSource.DataSource = this.dataSet.Tables["jlqd"];
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            IDataAccess access = DBHelp.IniIDA();
            access.BeginTrans();
            try
            {
                this.bindingSource.EndEdit();
                access.Update(this.dataSet, true);
                access.Commit();
            }
            catch (Exception exception)
            {
                access.RollBack();
                throw exception;
            }
        }
    }
}

